package cn.fu.core.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.fu.core.bean.TestTb;
import cn.fu.core.service.TestTbService;

@Controller
public class CenterController {

	@Autowired
	private TestTbService testTbService;
	//springmvc  测试
	@RequestMapping(value = "/test/index.do")
	public String index(){
		//Shift + Alt + L
		List<TestTb> testTbs = testTbService.selectTestList();
		for (TestTb testTb : testTbs) {
			System.out.println(testTb);
		}
	
		
		System.out.println(1);
		// /WEB-INF/...
		return "/test.jsp";
	}
	
}
